<template>
  <div>
    父组件<Child :text="msg" msg="dy" @changeText="changeText"/>
  </div>
</template>

<script>
import Child from './Child.vue';
export default {
    components:{
        Child
    },
    data(){
        return {
            msg:"戴剡"
        }
    },
    methods:{
        changeText(params){
            this.msg=params
        }
    }

}
</script>

<style>

</style>